package tessk.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Yanghu
 * @since 2017-07-03
 */
@TableName("SYS_USER")
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableId("USER_ID")
	private String userId;
    /**
     * 用户名
     */
	@TableField("USERNAME")
	private String username;
    /**
     * 密码
     */
	@TableField("PASSWORD")
	private String password;
    /**
     * 姓名
     */
	@TableField("NAME")
	private String name;
    /**
     * 权限
     */
	@TableField("RIGHTS")
	private String rights;
    /**
     * 角色id
     */
	@TableField("ROLE_ID")
	private String roleId;
    /**
     * 最后登录时间
     */
	@TableField("LAST_LOGIN")
	private String lastLogin;
    /**
     * 登录端ip地址
     */
	@TableField("IP")
	private String ip;
    /**
     * 状态
     */
	@TableField("STATUS")
	private String status;
    /**
     * 备注
     */
	@TableField("BZ")
	private String bz;
	@TableField("SKIN")
	private String skin;
	@TableField("EMAIL")
	private String email;
	@TableField("NUMBER")
	private String number;
	@TableField("PHONE")
	private String phone;


	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRights() {
		return rights;
	}

	public void setRights(String rights) {
		this.rights = rights;
	}

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public String getLastLogin() {
		return lastLogin;
	}

	public void setLastLogin(String lastLogin) {
		this.lastLogin = lastLogin;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getBz() {
		return bz;
	}

	public void setBz(String bz) {
		this.bz = bz;
	}

	public String getSkin() {
		return skin;
	}

	public void setSkin(String skin) {
		this.skin = skin;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Override
	protected Serializable pkVal() {
		return this.userId;
	}

	@Override
	public String toString() {
		return "User{" +
			"userId=" + userId +
			", username=" + username +
			", password=" + password +
			", name=" + name +
			", rights=" + rights +
			", roleId=" + roleId +
			", lastLogin=" + lastLogin +
			", ip=" + ip +
			", status=" + status +
			", bz=" + bz +
			", skin=" + skin +
			", email=" + email +
			", number=" + number +
			", phone=" + phone +
			"}";
	}
}
